<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>

<html>
	<head>
		<title>JSP for DynaActionForm form</title>
	</head>
	<body>
		请输入正确的信息！
		<table width="80%" border="1" cellspacing="0" cellpadding="0"
			align="center" bordercolor="#FFFFFF">
			<tr align="center" bgcolor="#EFF1F3">
				<td height="30" width="20%">
					name
				</td>
				<td height="30" width="20%">
					sax
				</td>
				<td height="30" width="20%">
					age
				</td>
				<td height="30" width="10%">
					sal
				</td>
			</tr>
			<html:form action="/insert"
				onsubmit="return validateInsertForm(this)">
				<td>
					<html:text property="name" />
					<html:errors property="name" />
				</td>
				<td>
					<html:text property="sax" />
					<html:errors property="sax" />
				</td>
				<td>
					<html:text property="age" />
					<html:errors property="age" />
				</td>
				<td>
					<html:text property="sal" />
					<html:errors property="sal" />
				</td>
				<html:submit value="添加"/>
				<html:cancel value="取消"/>
			</html:form>

		</table>
	</body>
	<html:javascript formName="insertForm" />
</html>

